home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 13 / AMIGAplus Sonderheft 13 (1998)(ICP)(DE)[!].iso / rexx / removechars.bed < prev    next >
Text File  |  1997-12-03  |  502b  |  34 lines

  1. /*
  2. ** $VER: RemoveChars.bed 1.0 (06.08.96)
  3. **
  4. ** Uncomment a marked block with a requestor to ask the depth of
  5. ** characters to remove.
  6. **
  7. ** Written by Brian Jones
  8. */
  9.  
  10. OPTIONS RESULTS
  11.  
  12. GetBlkDims
  13. PARSE VAR RESULT mode . start . end
  14.  
  15. IF mode = OFF THEN DO
  16.     SetStatusBar "Error: No block marked!"
  17. END; ELSE DO
  18.     MarkBlk
  19.  
  20. RequestNum '"Number of Chars to delete?"'
  21. num = RESULT
  22.  
  23.     Move start 1
  24.     RecordMacro QUIET
  25.     MoveSOL
  26.     Delete Chars num
  27.     MoveDown
  28.     EndMacro
  29.  
  30.     PlayMacro end - start
  31.     Delete Chars num
  32.  
  33. END
  34.